/**
 * Created with JetBrains WebStorm.
 * User: huwei
 * Date: 14-2-24
 * Time: 下午8:38
 * To change this template use File | Settings | File Templates.
 */

Ext.define( 'Dict', {
        extend: 'Ext.data.Model',
        fields: [
            'key_code','key_name'
        ],
        idProperty: 'key_code'
    });
var dict_store = Ext.create('Ext.data.Store', {
    model: 'Dict',
    proxy: {
        type: 'ajax',
        url: '/dict/list',
        reader: {
            type: 'json',
            root: 'items'
        }
    }
});